﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SMainCityRevenueMsg extends IMessageBase
    {
        public var totalRevenue:int;
        public var isGetTodayProfit:Boolean;
        public var playerProfit:int;
        public const _type:int = 5172;
        public static var _regist:SMainCityRevenueMsg = new SMainCityRevenueMsg(true);

        public function SMainCityRevenueMsg(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SMainCityRevenueMsg();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.totalRevenue);
            param1.writeBool(this.isGetTodayProfit);
            param1.writeInt(this.playerProfit);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.totalRevenue = param1.readInt();
            this.isGetTodayProfit = param1.readBool();
            this.playerProfit = param1.readInt();
            return;
        }// end function

    }
}
